package com.common.ascii;

/**
 * Created by yl on 2019/12/13
 */
public class AsciiTransfer {
    public static void main(String[] args) {
        AsciiTransfer asciiTransfer = new AsciiTransfer();
        asciiTransfer.transToAscii("中文");
    }

    private void transToAscii(String sss) {
       char ccc[] = sss.toCharArray();

        for (int i = 0; i < ccc.length; i++) {
            int a = ccc[i];
            System.out.println(Integer.toHexString(a));
        }
    }
}
